package com.bz.common;

import lombok.Data;

/**
 * 自定义API异常
 */
@Data
public class BusinessException extends RuntimeException {
    
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private int code;


    public BusinessException(int code ,String msg) {
        super(msg);
        this.code = code;
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }
}
